package cn.itcast.service.cargo;


import cn.itcast.domain.cargo.Invoice;
import cn.itcast.domain.cargo.InvoiceExample;
import cn.itcast.vo.ResultInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;



public interface InvoiceService {


    PageInfo<Invoice> findByPage(
            InvoiceExample invoiceExample, int pageNum, int pageSize);

    List<Invoice> findAll(InvoiceExample invoiceExample);

    Invoice findById(String id);

    void save(Invoice invoice);

    void update(Invoice invoice);


    void delete(String id);


    /**
     * {"msg",0|1}
     * @param id
     * @return
     */
    Map<String,Integer> hasCreated(String id);




    ResultInfo deleteById(String invoiceId);
    
    
}
